package com.examination.system.instructor.controller;

import com.examination.api.instructor.student.StudentControllerApi;
import com.examination.framework.model.response.QueryResponseResult;
import com.examination.system.administration.response.AddResult;
import com.examination.system.administration.response.DeleteAdministrationResult;
import com.examination.system.administration.response.DeleteResult;
import com.examination.system.administration.response.UpdateResult;
import com.examination.system.instructor.service.StudentService;
import com.examination.system.instructor.student.ext.StudentEnsemble;
import com.examination.system.instructor.student.ext.TbStudentEssential;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;

/**
 * @author 寇淇芮
 * @Date 2019/10/14 21:44
 */
@RestController
@RequestMapping("/instructor/studentessential")
public class StudentController extends BaseController<StudentService,TbStudentEssential>  implements StudentControllerApi {
    @Autowired(required = false)
    StudentService studentService;

    @Override
    @GetMapping("/studentEnsemble/{id}")
    public Callable<StudentEnsemble> findStudentByIdAll(@PathVariable("id") String id) {
        return ()->{return studentService.findStudentByIdAll(id);};
    }
}
